$NG.AllReady(function (page, { useValuesChange, useClick, useUpdateRow, useUpdateRows }) {
    console.log('Data ready event triggered');
    var mstform = $NG.getCmpApi("p_form_invoice_apply_m");

    var dgrid = $NG.getCmpApi('p_form_invoice_apply_d');



    //选择项目后更新
    useValuesChange(({ args }) => {
        debugger;
        console.log(mstform.getItem('phid_pc').getValue());
        $NG.execServer('getPtInfoByPhid', { phid: mstform.getItem('phid_pc').getValue() }, function (res) {
            const datas = JSON.parse(res.data)[0].extendObjects;
            console.log(datas);

            //帮助字段赋值
            $NG.updateState((updater) => {
                //【注意这里的表名不能为控件ID，必须要是表名】
                updater.data.p_form_invoice_apply_m.setProps({

                    u_pc_amt: datas.approx_contract_fc,



                });
            });

        });

    }, 'p_form_invoice_apply_m.phid_pc');

    //选择合同后，带出项目金额
    //
    //？






});